import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    component: () => import('./view/Home.vue'),
    children: [
      {
        path: '/upload',
        component: () => import('./view/video/file/UploadExcel.vue'),
      },
      {
        path: '/export',
        component: () => import('./view/video/file/ExportExcel.vue'),
      },
      {
        path: '/print',
        component: () => import('./view/video/file/Print.vue'),
      },
      {
        path: '/sign',
        component: () => import('./view/video/canvas/signBoard.vue'),
      },
      {
        path: '/poster',
        component: () => import('./view/video/canvas/poster.vue'),
      },
      {
        path: '/tiptap',
        component: () => import('./view/video/editor/tiptap.vue'),
      },
      {
        path: '/ueditor',
        component: () => import('./view/video/editor/ueditor.vue'),
      },
      {
        path: '/quill',
        component: () => import('./view/video/editor/vue-quill-editor.vue'),
      },
      {
        path: '/socket',
        component: () => import('./view/video/chat/Websocket.vue'),
      },
      {
        path: '/chart',
        component: () => import('./view/video/echart/Chart.vue'),
      },
      {
        path: '/map',
        component: () => import('./view/video/echart/Map.vue'),
      },
      {
        path: '/panorama',
        component: () => import('./view/video/threejs/Panorama.vue'),
      },
      {
        path: '/rotate',
        component: () => import('./view/video/threejs/Rotate.vue'),
      },
      {
        path: '/language',
        component: () => import('./view/project/Language.vue'),
      },
      {
        path: '/move',
        component: () => import('./view/project/Move.vue'),
      },
      {
        path: '/permission',
        component: () => import('./view/project/Permission.vue'),
      },
      {
        path: '/magnifier',
        component: () => import('./view/project/Magnifier.vue'),
      },
      {
        path: '/directive',
        component: () => import('./view/project/Directive.vue'),
      },
      {
        path: '/citylist',
        component: () => import('./view/project/CityList.vue'),
      },
      {
        path: '/lrc',
        component: () => import('./view/project/LRC.vue'),
      },
      {
        path: '/asyntip',
        component: () => import('./view/work/SyncTip.vue'),
      },
    ]
  },
]

const router = new VueRouter({
  routes
})

export default router